import pandas as pd
import matplotlib.pyplot as plt

data = pd.read_csv("D:\\Code_c++\\output\\nyquist_data.csv")
plt.figure(figsize=(10, 6))
plt.plot(data['Time'], data['Original'], label='Original (5Hz)')
plt.plot(data['Time'], data['Nyquist_Reconstructed'], '--', label='12Hz Reconstructed')
plt.plot(data['Time'], data['Aliasing_Reconstructed'], ':', label='8Hz Reconstructed (Aliasing)')
plt.xlabel('Time (s)')
plt.ylabel('Amplitude')
plt.legend()
plt.title('Nyquist Theorem Verification')
plt.show()